/**
 * 出差套件
 */
export const businessTripChildren = [
    {
        label: '出差事由',
        formId: 'reason',
        tag: 'TextArea',
        autofill: true,
        extra: '',
        rules: [
            {
                required: true,
                message: '请输入出差事由'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请输入出差事由'
        }
    },
    {
        label: '开始时间',
        formId: 'startTime',
        tag: 'LeaveDatePicker',
        isSummary: true,
        rules: [
            {
                required: true,
                message: '请选择开始时间'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请选择开始时间'
        }
    },
    {
        label: '结束时间',
        formId: 'endTime',
        tag: 'LeaveDatePicker',
        isSummary: true,
        rules: [
            {
                required: true,
                message: '请选择结束始时间'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请选择结束始时间'
        }
    },
    {
        label: '时长',
        formId: 'duration',
        tag: 'Duration',
        autofill: true,
        extra: '出差时长将自动计入考勤统计',
        rules: [
            {
                required: true,
                message: '输入时长'
            }
        ],
        options: {
            disabled: true,
            placeholder: '时长'
        }
    },
    {
        label: '住宿费',
        formId: 'hotelExpense',
        tag: 'InputNumber',
        autofill: true,
        extra: '',
        rules: [
            {
                type: 'number',
                required: false,
                message: '请输入住宿预算'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请输入住宿预算'
        }
    },
    {
        label: '交通费',
        formId: 'transportExpense',
        tag: 'InputNumber',
        autofill: true,
        extra: '',
        rules: [
            {
                type: 'number',
                required: false,
                message: '请输入市内交通与跨区域交通预算'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请输入市内交通与跨区域交通预算'
        }
    },
    {
        label: '出差补贴',
        formId: 'businessTripAllowance',
        tag: 'InputNumber',
        autofill: true,
        extra: '',
        rules: [
            {
                type: 'number',
                required: false,
                message: '请输入出差补贴'
            }
        ],
        options: {
            disabled: true,
            placeholder: '国内出差补贴人民币150元/天，国外出差补贴新币50元/天'
        }
    },
    {
        label: '其他费用',
        formId: 'otherExpense',
        tag: 'InputNumber',
        autofill: true,
        extra: '',
        rules: [
            {
                type: 'number',
                required: false,
                message: '请输入其他所需费用'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请输入其他所需费用'
        }
    },
    {
        label: '其他费用说明',
        formId: 'otherExpenseDescribe',
        tag: 'TextArea',
        autofill: true,
        extra: '',
        rules: [
            {
                required: false,
                message: '请描述其他费用的支出项目'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请描述其他费用的支出项目'
        }
    },
    {
        label: '总预算',
        formId: 'businessTripTotalExpense',
        tag: 'InputNumber',
        autofill: true,
        extra: '',
        rules: [
            {
                required: true,
                message: '请输入总预算'
            }
        ],
        options: {
            disabled: true,
            placeholder: '系统自动计算总预算'
        },
        proCondition: true,
        isUsed: false,
        conditionShowOption: { showType: 'number' }
    }
];

export const businessTripControl = {
    label: '出差申请',
    cmpType: 'custom',
    formId: '',
    key: 'BusinessTrip',
    tag: 'BusinessTrip',
    proCondition: true,
    isUsed: false,
    children: businessTripChildren
};
